/**
 * Proyecto X Tecnologia de programacion  2do cuatrimestre de 2012
 * @author
 * German Rickert LU: 93284
 * Maximiliano Tiberi LU: 83600
 * Sebastian Larrieu LU: 94056
 */
package grafica;

import javax.swing.Icon;
import javax.swing.ImageIcon;

@SuppressWarnings("serial")
public class DisparoGrafico extends RepresentacionGrafica
{
	//constructor
	public DisparoGrafico()
	{
		super();
	}
	
	//Metodos para cargar los disparos graficos
	public void cargarDisparoIronMan()
	{
		Icon img1;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/disparos/ironman.gif"));
		agregarImagen(img1,0);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	
	public void cargarDisparoSpiderMan()
	{
		Icon img1;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/disparos/spiderman.gif"));
		agregarImagen(img1,0);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
		}
	
	public void cargarDisparoThor()
	{
		Icon img1;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/disparos/thor.gif"));
		agregarImagen(img1,0);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarDisparoHulk()
	{
		Icon img1;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/disparos/hulk.gif"));
		agregarImagen(img1,0);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
}
